import {
    HomeOutlined,
    AppstoreOutlined,
    BarsOutlined,
    ToolOutlined,
    UserOutlined,
    TeamOutlined,
    AreaChartOutlined,
    BarChartOutlined,
    LineChartOutlined,
    PieChartOutlined
  } from '@ant-design/icons';

const menuList = [
    {
        title: "首页", //菜单标题名称
        key: "/home", // 对应的path
        icon: <HomeOutlined />, //图标名称
        isPublic: true, // 公开
    },
    {
        title: "商品",
        key:"/products", // 无对应路由器
        icon: <AppstoreOutlined/>,
        children: [ //子菜单列数
            {
                title:"品类管理",
                key:"/category",
                icon:<BarsOutlined/>
            },
            {
                title:"商品管理",
                key:"/product",
                icon:<ToolOutlined/>
            }
        ]

    },
    {
        title:"用户管理",
        key:"/user",
        icon:<UserOutlined/>
    },
    {
        title:"角色管理",
        key:"/role",
        icon:<TeamOutlined/>
    },
    {
        title:"图形图表",
        key:"/charts",
        icon:<AreaChartOutlined/>,
        children:[
            {
                title:"柱形图",
                key:"/charts/bar",
                icon:<BarChartOutlined/>
            },
            {
                title:"折线图",
                key:"/charts/line",
                icon:<LineChartOutlined/>
            },
            {
                title:"饼图",
                key:"/charts/pie",
                icon:<PieChartOutlined/>
            }
        ]
    }
]

// 默认暴露的可以任意
export default menuList;